#write kernel image to nand flash

send	setenv ethaddr 00:11:f7:06:14:46
expect {
    "DM355 IPNC # "
}
send setenv ipaddr 192.168.5.33
expect {
    "DM355 IPNC # "
}
send setenv serverip 192.168.5.30
expect {
    "DM355 IPNC # "
}
send nand erase 0x200000 0x200000
expect {
    "DM355 IPNC # "
}
send nand read 0x82000000 0x200000 0x200000
expect {
    "DM355 IPNC # "
}
send tftpboot 0x82000000 uImage
expect {
    "DM355 IPNC # "
}
send nand write 0x82000000 0x200000 0x200000
expect {
}
timeout 1
exit 0
